-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MIG] l10n_uy_reports: Migration to 18.0 #258
Conversation
cb8397c
to
7c24be1
Compare
7c24be1
to
88d6ddc
Compare
a899e88
to
ef2a85e
Compare
@@ -199,7 +200,7 @@ def action_get_files(self): | |||
if self.company_id.country_id.code != 'UY': | |||
raise UserError(_("Solo puede generar este reporte para compañias Uruguayas")) | |||
|
|||
data = getattr(self, '_get_form_%s_data' % self.uy_form_id)() | |||
data = getattr(self, '_get_form_%s_data' % self.uy_form_id)() if self.uy_form_id else None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
esto es porque el wizard tiene un campo selection para poner el formulario correspondiente, y si no seleccionabas ningun formulario saltaba un traceback
ab5937b
to
5a99a74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Todos los cambios realizados sobre las queries y el uso de la tool SQL lo tomé de cambios realizados en l10n_ar_reports de Odoo enterprise
https://github.com/odoo/enterprise/commit/eeaa8d3b31d8efccd42b8705ba387527a39dfb57
5a99a74
to
8cf46d2
Compare
newUyVatBookTaxTypes[taxType]["selected"] = !newUyVatBookTaxTypes[taxType]["selected"]; | ||
this.filterClicked({ optionKey: "uy_vat_book_tax_types_available", optionValue: newUyVatBookTaxTypes, reload: true}); | ||
}, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corregir en lint
@@ -0,0 +1,27 @@ | |||
import { _t } from "@web/core/l10n/translation"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
necesitamos esta línea?
).filter((type) => type.selected); | ||
|
||
if (selectedTypes.length === availableTypes.length || selectedTypes.length === 0) { | ||
return _t("All"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return _t("All"); | |
return "All"; |
quizás habría que hacer esto?
8cf46d2
to
e369992
Compare
@roboadhoc r+ |
No description provided.